home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 501-525 / disk_521 / checkprt / checkprt.doc < prev    next >
Text File  |  1992-05-06  |  4KB  |  107 lines

  1.   *-----------------------*
  2.  /                       /|
  3. *-----------------------* |
  4. | Prg.name : CheckPrt   | | 
  5. | Date     : 26.06.1991 | *---------------------------*
  6. | Language : Oberon     |/                           /|
  7. *-----------------------*---------------------------* |---------------- *
  8. |     ----  Copyright Tom Kroener                   | |                /|
  9. |    /(c)|            Richard Wagner Str. 40        | |               / |
  10. |   / TKs|            D-6602 Saarbruecken-Dudweiler | |              /  *
  11. |  / 1991|            GERMANY                       | *             /  /  
  12. | --------                                          |/             /  /
  13. *---------------------------------------------------*-------------*  /
  14. | CheckPrt is a freely distibutable program, but not public-domain| /
  15. | It may not be used in commercial products without my permission |/
  16. *-----------------------------------------------------------------*
  17.  
  18.  
  19. CheckPrt is a little tool to check in a script-file if a printer is 
  20.  
  21. available.
  22.  
  23. So you save the long, long ,long , loooooong time it takes to show 
  24.  
  25. you the 'Printer trouble ....' Requester.
  26.  
  27. In this version ChechPrt also checks if the printer is in 'busy'-state
  28.  
  29. ( returns 5 ) for more flexibility.
  30.  
  31.  
  32. Here a little scriptfile, showing the usage :
  33.  
  34.  
  35. ----------------------------------------------------------------------
  36. | failat 20   ; CheckPrt returns 10 if printer is not selected or off |
  37. |             ;  and 5 if it is busy                                  |
  38. | CheckPrt                                                            |
  39. | IF ERROR                                                            |
  40. |     echo " Sorry, but your printer seems to be off or not selected" |
  41. |     echo " "                                                        |
  42. |     SKIP END                                                        |
  43. | ENDIF                                                               |
  44. |                                                                     |
  45. | CheckPrt                                                            |
  46. |                                                                     |
  47. | IF WARN                                                             |
  48. |     echo " Wait a little moment, your printer is busy "             |
  49. | ELSE                                                                |
  50. |     echo " OK, your printer seems to be available"                  |
  51. | ENDIF                                                               |
  52. |                                                                     |
  53. | LAB END                                                             |
  54. | FAILAT 10                                                           |
  55.  ---------------------------------------------------------------------
  56.  
  57. ATTENTION :
  58.  
  59.         CheckPrt only works with printers using the parallel-port of
  60.  
  61.         your Amiga. !!!!
  62.  
  63.  
  64. Different printers returns different values, if they are switched on
  65.  
  66. and on-line.
  67.  
  68. This was the reason, why the version of CheckPrt on Fish 479 sometimes 
  69.  
  70. worked not correctly.
  71.  
  72.  
  73. After tests and suggestions of P.H. Orvis (many thanks !), I have
  74.  
  75. rewritten CheckPrt (Now in Oberon, only 612 Bytes long !), so
  76.  
  77. now it should work fine with all (I hope !) printers.
  78.  
  79.  
  80. If have also included 2 small tools to make it easier to find
  81.  
  82. errors, if CheckPrt doesn't works correctly. (see also 
  83.  
  84. Analyse+PDP.doc).
  85.  
  86.  
  87.  
  88. If something's going wrong, if you have any  criticism, error-reports, 
  89.  
  90. gifts or something else write to
  91.  
  92.  
  93.             Tom Kroener
  94.             Richard Wagner Str. 40
  95.             D-6602 SB-Dudweiler
  96.             GERMANY
  97.  
  98.  
  99.  
  100.  
  101. So long
  102.         --- Tom
  103.  
  104.  
  105.  
  106.  
  107.